﻿<%@ Page Language="C#" AutoEventWireup="true" EnableViewState="false"  CodeBehind="PostTypeManage.aspx.cs" Inherits="eBlog.Web.Admin.PostTypeManage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="x-ua-compatible" content="ie=7" />
<link href="resources/css/style.css" rel="stylesheet" type="text/css" />
<script src="resources/scripts/common.js" type="text/javascript"></script>
<script src="resources/scripts/admincp.js" type="text/javascript"></script>
<style type="text/css">
.Termsleft{ width:60%; display:block; float:left;}
.Termsright{ width:30%; display:block; float:left; padding-left:40px;}
</style>
</head>
<body>
<div id="append_parent"></div>
<div class="container" id="cpcontainer">
<script type="text/JavaScript">    parent.document.title = '管理中心 - 分类管理 '; if (parent.$('admincpnav')) parent.$('admincpnav').innerHTML = '全局&nbsp;&raquo;&nbsp;管理 分类管理';</script>

<div class="floattop">
<div class="itemtitle">
	<h3>分类管理</h3>
    <ul class="tab1" id="submenu">
        <li class="current"><a href="PostTypeManage.aspx"><span>分类列表</span></a></li>
        <li class="current"><a href="PostTypeManage.aspx?action=reset"><span>重置标签的文章数</span></a></li>
    </ul>
</div>
</div>

<div class="floattopempty"></div>
<form name="cpform" id="cpform" runat="server">
<input type="hidden" ID="Referrer" runat="server" />
<div class="Termsleft">
<%--列表容器--%>
<asp:Panel ID="list" runat="server"  EnableViewState="false">
<table class="tb tb2 ">
<tr><th colspan="15" class="partition">共<strong> <%=ListCount %> </strong>个分类<a href="" class="act lightlink normal"></a></th></tr>

<tr class="header">
    <th></th>
	<th>序号</th>
	<th>名称</th>
	<th>父级类型</th>
	<th>描述</th>
	<th>排序值</th>
	<th>文章数量</th>
	<th>创建时间</th>
	<th>管理选项</th>
</tr>

<asp:Repeater ID="RPLIST" runat="server">
<itemtemplate>
<tr class="hover">
	<td class="td25"><input type="checkbox" name="checkAllID" value="<%#Eval("ID") %>" class="checkbox"></td>
	<td><%#Eval("ID") %></td>
    <td><%#Eval("Name") %></td>
	<td><%#Eval("ParentID") %></td>
	<td><%#Eval("Description") %></td>
	<td><%#Eval("DisplayOrder") %></td>
	<td><%#Eval("Count") %></td>
	<td><%#Eval("Createdate") %></td>
	<td><a href="?action=edit&id=<%#Eval("ID") %>" class="act">编辑</a><a href="?action=del&id=<%#Eval("ID") %>" class="act" onclick="return confirm('数据删除不可恢复,确认删除吗？');" >删除</a></td>
</tr>
</itemtemplate>
</asp:Repeater>
<tr><td colspan="15"><div class="cuspages right"><div class="pg"><asp:Literal ID="PageNav" runat="server"></asp:Literal></div></div>
<div class="fixsel"><input type="checkbox" name="chkall" onclick="checkAll('prefix', this.form, 'checkAllID')" class="checkbox">删? &nbsp;
<input type="button" class="btn" id="checkAllDel" name="checkAllDel" value="提交" onclick="return confirm('确认选择批量删除吗？');"/></div>
</td></tr>
</table>
</asp:Panel>
</div>
<div class="Termsright">
<asp:Panel ID="edit" runat="server" EnableViewState="false">
<table class="tb tb2 nobdb" id="base">

    <tr><td colspan="2" class="partition">添加分类:</td></tr>
	<tr><td colspan="2" class="td27">名称:</td></tr>
	<tr class="noborder"><td class="vtop rowform"><asp:TextBox ID="txtName" runat="server" class="txt"></asp:TextBox></td>
	<td class="vtop tips2"></td>
	</tr>

	<tr><td colspan="2" class="td27">父级类型:</td></tr>
	<tr class="noborder"><td class="vtop rowform"><asp:TextBox ID="txtParentID" runat="server" class="txt"></asp:TextBox></td>
	<td class="vtop tips2"></td>
	</tr>

	<tr><td colspan="2" class="td27">描述:</td></tr>
	<tr class="noborder"><td class="vtop rowform"><asp:TextBox ID="txtDescription" runat="server" class="txt"></asp:TextBox></td>
	<td class="vtop tips2"></td>
	</tr>

	<tr><td colspan="2" class="td27">排序值:</td></tr>
	<tr class="noborder"><td class="vtop rowform"><asp:TextBox ID="txtDisplayOrder" runat="server" class="txt"></asp:TextBox></td>
	<td class="vtop tips2"></td>
	</tr>
</table>
<div class="fixsel"><asp:Button ID="btnSave" runat="server" Text="保 存" class="btn" OnClick="btnSave_Click" ></asp:Button><span style="margin-left:20px"> </span><input type="button" value="返 回" id="goback" class="btn" onclick="javascript:history.go(-1)" /></div>
</asp:Panel>
</div>
<input type="hidden" ID="ErrCodeStr" runat="server" />
<script type="text/javascript">formShowErr("ErrCodeStr");</script>
</form>
</div>

</body>
</html>
